﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Microsoft.Office.OneNote;

namespace Microsoft.Office.OneNote.XmlViewer
{
    internal static class ColorExtensions
    {
        public static Color ToDrawingColor(this OneNoteColor color)
        {
            if (color == OneNoteColor.Automatic || color == OneNoteColor.None)
            {
                return SystemColors.Window;
            }

            return Color.FromArgb(color.R, color.G, color.B);
        }
    }
}
